package com.vca.front.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vca.common.model.user.User;
import com.vca.common.request.PhoneDecryptionRequest;
import com.vca.common.request.RegisterThirdUserRequest;
import com.vca.common.request.UserRechargeRequest;
import com.vca.common.request.WxBindingPhoneVoRequest;
import com.vca.common.response.LoginResponse;
import com.vca.common.response.OrderPayResultResponse;
import com.vca.common.response.UserRechargeFrontResponse;

/**
 * @author chenbing
 * @date 2022/10/8   15:34
 */
public interface UserCenterService extends IService<User> {

    /**
    * @Description:微信登录小程序授权登录
    * @Author: chenBing
    * @Date: 2022/10/8
    */
    LoginResponse weChatAuthorizeProgramLogin(String code, RegisterThirdUserRequest request);

    /**
    * @Description:微信注册绑定手机号
    * @Author: chenBing
    * @Date: 2022/10/8
    */
    LoginResponse registerBindingPhone(WxBindingPhoneVoRequest request);

    /**
    * @Description:充值额度选择
    * @Author: chenBing
    * @Date: 2022/10/8
    */
    UserRechargeFrontResponse getRechargeConfig();

    /**
    * @Description:小程序支付
    * @Author: chenBing
    * @Date: 2022/10/8
    */
    OrderPayResultResponse recharge(UserRechargeRequest request);

    /**
     *@Description:手机号解密
     *@author:chenbing
     *@date 2022/12/20 13:12
     */
    String phoneDecryption(PhoneDecryptionRequest request);
}
